package com.friehome.app;

import java.util.ArrayList;
import java.util.List;

import model.LTModel;

import org.json.JSONObject;
import org.xutils.x;
import org.xutils.view.annotation.ViewInject;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.net.HttpRequestUtil;
import com.net.HttpResponse;
import com.net.TTHttpRequestControll;

import adapter.IndexAdapter;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.TextView;

public class DCActivity extends BaseActivity{

	@ViewInject(R.id.text_title)
	TextView text_title;
	
	@ViewInject(R.id.text_dc)
	TextView text_dc;
	
	String id;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_dc);
		x.view().inject(this);
		
		text_title.setText("悼词");
		
		
		TTHttpRequestControll.httpIndex(getApplicationContext(), new HttpRequestUtil.HttpRonspontCallBack() {
			
			@Override
			public void callBack(HttpResponse result) {
				if (result.success) {
					//JSONObject ob=  new JSONObject(result.content);
					//data = new Gson().fromJson(ob.getJSONArray("list").toString(), new  TypeToken<List<LTModel>>(){}.getType() );

					
				}else{
					toast(result.errorMsg);
				}
					
				
			}
		});
		
		
	}
}
